export function IdentityPhone(phone) {
    const re = /^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9]|17[0-9])\d{8}$/;
    return re.test(phone);
}

export function IdentityEmail(email) {
    const re = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
    return re.test(email);
}
export function VerifyPhoneOrTel(phone) {
  //手机号码或者固话
  return /^((0?1[358]\d{9})|(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,12})$/.test(phone)
}
export function IdentityZipCode(zipCode) {
  let re = /^[1-9][0-9]{5}$/;
  return re.test(zipCode)
}
